import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;

import javax.swing.JFrame;

/*
 * Unless stated otherwise, all code that this class references
 * belong to Matthew Symons and Ryan Serazin.
 * Code may be copied under Fair Use, but must reference
 * The original authors.
 */

public class Main {
	JFrame window;
	GraphicsPanel panel;

	public Main(){
		window = new JFrame("Maleable Man");
		panel = new GraphicsPanel();
		window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		window.getContentPane().add(panel);
		window.setUndecorated(true);
		GraphicsDevice myDevice = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
		myDevice.setFullScreenWindow(window);
		window.setVisible(true);
		window.setResizable(false);
	}

	public static void main(String[] args){
		Main game = new Main();
		game.start();
	}

	public void start(){
		panel.startGame();
	}
}
